package com.gxa.finance.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gxa.finance.pojo.Bill;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BillMapper extends BaseMapper<Bill> {
    int updateBillStatus(Bill bill);

    Bill findByBillId(String billId);

    int findByTimeCount(@Param("staTime") String staTime, @Param("offTime") String offTimeString,@Param("b_type")String b_type,@Param("b_status")Integer b_status);

    List<Bill> findByDateBills(@Param("sta") Integer sta, @Param("off") Integer off, @Param("staTime") String staTime, @Param("offTime") String offTime,@Param("b_type")String b_type,@Param("b_status")Integer b_status);
}
